import Vue from 'vue'
import Router from 'vue-router'
import Config from "@/pages/config"
import detail from "@/pages/detail"
import online from "@/pages/online"
import onlineDetail from "@/pages/onlineDetail"
Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      redirect: '/qa',
    },
    {
      path: '/qa/config',
      name: 'Config',
      component: Config
    },
    {
      path: '/qa/detail',
      name: 'detail',
      component: detail
    },
    {
      path: '/qa/goOnline',
      name: 'online',
      component: online
    },
    {
      path: '/qa/onlineDetail',
      name: 'onlineDetail',
      component: onlineDetail
    }
  ],
  linkActiveClass: 'router-link-active'

})
